<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>属性选择器</title>
    <script src="C:\Users\86198\Desktop\yl-dsj\jquery-3.6.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
       $(function(e){
            $("div[title]").css({width:"300px",height:"30px",margin:"3px"});
            $("div[title=menu]").css("border","2px soild #AAA");
       })
    </script>
</head>
<body>
    <div id="topDiv" title="top" desc="页面顶部">页面顶部</div>
    <div id="menuDiv" title="menu" >菜单栏</div>
    <div id="mainDiv">主题区</div>
    <div id="leftDiv" title="mainLeft">左侧栏</div>
    <div id="rightDiv" title="mainRight">右侧栏</div>
    <div id="bottomDiv" title="bottom" desc="页面底部">底部栏</div>
    <div id="advDiv" title="advbottom">广告栏</div>
</body>
</html>